X_CLEAN		= $(obj)/*.asm $(obj)/*.sym

NAME		:= font
SRC			= *.c

X_PREPARE	+= $(objtree)/user/lib/libuser.a

define CUSTOM_TARGET_CMD
echo [OUTPUT] $@
$(LD) $(X_LDFLAGS) $(X_OBJS) $(patsubst %, -L%, $(X_LIBDIRS)) $(patsubst %, -l:lib%.a, $(X_LIBS)) -o $@
$(OD) -S $@ > $@.asm
$(OD) -t $@ | sed '1,/SYMBOL TABLE/d; s/ .* / /; /^$$/d' > $@.sym
$(STRIP) $@
cp $@ $(objtree)/rootfs/bin
endef